/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpb.projetoesa.dados;

/**
 *
 * @author Rennan
 */
public abstract class TurmaDAOFactory {

    public static final int BD = 1;
    public static final int FILE = 2;

    
    public abstract TurmaDAO getTurmaDAO(int tipo);
    
    public static TurmaDAOFactory getTurmaDAOFactory(int tipoPersistencia){
        switch (tipoPersistencia){
            case BD:
                return TurmaDAOBDFactory.getInstance();
            case FILE:
                return TurmaDAOFileFactory.getInstance();
            default:
                return null;
        }
    }
    
    
    
}
